package com.usth.service;

import java.util.List;

import com.usth.dao.FlightDaoImpl;
import com.usth.dao.IFlightDao;
import com.usth.model.Airport;
import com.usth.model.BuyTVO;
import com.usth.model.FlightCom;
import com.usth.model.FlightInfo;
import com.usth.model.FlightTranVO;

public class FlightServiceImpl implements IFlightService {
	private IFlightDao flightdao;


	public IFlightDao getFlightdao() {
		return flightdao;
	}

	public void setFlightdao(IFlightDao flightdao) {
		this.flightdao = flightdao;
	}

	public List<Airport> listair() {
		return this.flightdao.listair();
	}

	public List<FlightCom> listcom() {
		return this.flightdao.listcom();
	}

	public void addflight(FlightInfo fi) {
		this.flightdao.addflight(fi);
	}

	public List<FlightInfo> listflights() {
		return this.flightdao.listflights();
	}

	public void flightedit(FlightInfo fi) {
		this.flightdao.flightedit(fi);
	}

	public void delflight(String fid) {
this.flightdao.delflight(fid);		
	}

	public List<FlightTranVO> pretran() {
		return this.flightdao.pretran();
	}
	

}
